package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-05-03
 */
@TableName("log_page")
public class LogPage extends Model<LogPage> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	private Long id;
    /**
     * 页面的ID
     */
	@TableField("page_id")
	private Integer pageId;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 访问时间
     */
	@TableField("visit_time")
	private Date visitTime;
    /**
     * ip地址
     */
	private String ip;

	@TableField("house_id")
	private Long houseId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getPageId() {
		return pageId;
	}

	public void setPageId(Integer pageId) {
		this.pageId = pageId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Date getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Long getHouseId() {
		return houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}


	@Override
	public String toString() {
		return "LogPage{" +
				"id=" + id +
				", pageId=" + pageId +
				", userId=" + userId +
				", visitTime=" + visitTime +
				", ip='" + ip + '\'' +
				", houseId=" + houseId +
				'}';
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
